import request from '/@/utils/request';

/**
 * 文件管理操作接口
 */
export function useNoticeApi() {
	return {
		getNoticePage:(params?: object) => {
			return request<any, AjaxResult>({
				url: '/notice/pageReceived',
				method: 'get',
				params,
			});
		},
		setNoticeRead: (data={}) => {
			return request<any, AjaxResult>({
				url: '/notice/setRead',
				method: 'post',
				data,
			});
		},
	};
}
